POV-Ray : Newsgroups : povray.newusers : adding 2 pigments : Re: adding 2 pigments Server Time
4 Nov 2024 19:16:59 EST (-0500)
  Re: adding 2 pigments  
From: Elias Pschernig
Date: 17 Oct 2001 05:58:39
Message: <3bcd564f$1@news.povray.org>
> Elias, see my code below.
> 
> It isn't tested much...
> - Maybe you can give it a few tests ?
> 
> 

[...]

Yes, that looks better :) Especially not defining separate pattern functions,
it is what looked worst in my approach. Btw, I discovered that the transparent
component doesn't work, it seems to be a limitation of pigment functions. I'm
not sure yet if it is a bug, but the .t always returns 0, no matter what the
transparency of the pigment used is. (The transparency in my code doesn't work
as well)

-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.